package com.ruoyi.base.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 学校档案对象 tarch_school
 *
 * @author ruoyi
 * @date 2024-06-03
 */
@Data
@Accessors(chain = true)
public class School extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    @ApiModelProperty("学校名称")
    private String name;

    /**
     * 学校地址
     */
    @Excel(name = "学校地址")
    @ApiModelProperty("学校地址")
    private String addr;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(hidden = true)
    private Long orderNo;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(hidden = true)
    private Long delFlag;

    @ApiModelProperty("学校面积")
    private BigDecimal area;

    @ApiModelProperty("学校人数")
    private Integer person;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("addr", getAddr())
                .append("orderNo", getOrderNo())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}
